package com.tbsoft.ehr.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @desc 系统公告实体
 * @author vastdream
 *
 */
@Entity
@Table(name="EHR_NOTIFYFILE")
public class NotifyFile extends BaseEntity {
	/**
	 * 文件ID
	 */
	private int fileId;
	/**
	 * 文件名
	 */
	private String fileName;
	/**
	 * 服务客户
	 */
	private String scId;
	/**
	 * 公告类型(M:公告,R:制度，P：流程)
	 */
	private String notifyType;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="FILE_ID")
	public int getFileId() {
		return fileId;
	}
	public void setFileId(int fileId) {
		this.fileId = fileId;
	}
	@Column(name="FILE_NAME",length=100,nullable=false)
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	@Column(name="NOTIFY_TYPE",length=1,nullable=false)
	public String getNotifyType() {
		return notifyType;
	}
	public void setNotifyType(String notifyType) {
		this.notifyType = notifyType;
	}
	@Column(name="SC_ID",length=32)
	public synchronized String getScId() {
		return scId;
	}
	public synchronized void setScId(String scId) {
		this.scId = scId;
	}
	private String serviceName;
	@Transient
	public synchronized String getServiceName() {
		return serviceName;
	}
	public synchronized void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}
	
}
